package com.bridgeintelligent.tag.webserver.dim.query.api;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * Created by JackCheung on 2019/10/28 6:02 PM.
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class IndexRsp {

    private int code;
    private DataRsp data;

    @Data
    public static class DataRsp {

        List<DataRspChild> list;

        @AllArgsConstructor
        @NoArgsConstructor
        @Data
        public static class DataRspChild {

            private Long totalCount;///单指标分析
            private List<RspDetail> content;

            @AllArgsConstructor
            @NoArgsConstructor
            @Data
            public static class RspDetail {

                public RspDetail(Long totalCount) {
                    this.totalCount = totalCount;
                }

                private String name;
                private Long totalCount;
                private List<RspDetail> child;
            }
        }
    }
}
